package com.thh.idempotent.model.vo;

import lombok.Data;

/**
 * @description:
 * @author: thh
 * @time: 2020/6/7 10:01
 */

public class ResultVo {
private int code ;
private String  message ;
private Object data ;

    public ResultVo() {
    }

    public static ResultVo getSuccessResult(String message) {
        ResultVo resultVo = new ResultVo();

        resultVo.setMessage(message);
        resultVo.setCode(1);
        resultVo.setData("数据");
        return resultVo;
    }
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
